{% extends 'base.html' %}
{% load i18n %}
{% load tag_extras %}
{% block content %}
<p>{% trans "Please help us build the catalog by suggesting data sets for inclusion." %}</p>
	<form action="/data/suggest/" method="POST" id="suggest">
		{% if form.errors %}
		<div class="errors">
			<h3 id="error">{% trans "An problem occurred when saving yor suggestion" %}</h3>
		<p>{% trans "Please correct the information and click the suggest button again." %}</p>
		<ul>
		{% for field in form %}
		{% if field.errors %}
		<li>{{ field.label }}: {{ field.errors|striptags }}</li>
		{% endif %}
		{% endfor %}
		</ul>
		</div>
		{% endif %}
		{{ form.as_p }}
		<input type="submit" value="{% trans "Suggest dataset" %}" />
	</form>
{% endblock %}

{% block sidebar %}
<h2>{% trans "What happens next?" %}</h2>	
<p>{% trans "All suggestions are reviewed and completed with more information about usage restrictions and available formats. After that, they are added to the catalog." %}</p>
{% if recent_suggestions %}
<h2>{% trans "Recent suggestions" %}</h2>
<div class="comments latest">
<ul>
{% for suggestion in recent_suggestions %}
<li>{% gravatar suggestion.submitter_email %}
{{suggestion.submitter_name}} {% trans "suggested" %} {{suggestion.name}} {% trans "by" %} {{suggestion.agency}}.</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endblock %}
